package com.welsmann.app.start.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Component;

import com.welsmann.app.start.dao.BaseDAO;
import com.welsmann.app.start.dao.ISiteTypeDAO;
import com.welsmann.app.start.entity.SiteType;

@Component("SiteTypeDAO")
public class SiteTypeDAO extends BaseDAO implements ISiteTypeDAO {

	private HibernateTemplate _ht = null;
	
	@Override
	public List<SiteType> getAll() {
		_ht = new HibernateTemplate(sessionFactory);
		return _ht.find("from SiteType order by no");
	}
	
}
